<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
  <style>
    .badge-points{
      color: #868686;
    }
    .badge-state{
      color: #09c92c;
      border-color: #09c92c;
    }
    .shop-card{
      min-width: 1000px;
    }
  </style>
</head>
<body>

  <div class="layui-fluid">
  <div class="layui-row layui-col-space15 ">
    <div class="layui-col-md12">
      <div class="layui-card shop-card">
        <div class="layui-card-header">违规信息</div>
        <div class="layui-card-body">
          <table class="layui-table" lay-even="" lay-skin="row">
            <colgroup>
              <col width="200">
              <col width="140">
              <col width="100">
              <col width="140">
              <col width="200">
              <col width="200">
              <col width="200">
              <col width="200">
            </colgroup>
            <thead>
            <tr>
              <th>店铺名称</th>
              <th>违规编号</th>
              <th>违规时间</th>
              <th>违规类型</th>
              <th>严重程度</th>
              <th>扣分</th>
              <th>处罚状态</th>
              <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td>{$config.title}</td>
              <td>{$config.violation_sn}</td>
              <td>{$config.violation_time}</td>
              <td>{$config.violation_type}</td>
              <td>{$config.violation_degree}</td>
              <td><span class="layui-badge layui-badge-rim badge-points">{$config.points}</span></td>
              <td><span class="layui-badge layui-badge-rim badge-state">{$config.chufa_state}</span></td>
              <td><button type="button"  class="layui-btn layui-btn-xs action-btn">{$config.action}</button></td>
            </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>

  <script src="/static/layuiadmin/layui/layui.js"></script>
  <script>
    layui.config({
      base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
      index: 'lib/index' //主入口模块
    }).use('index',function(){
      var $ = layui.$,
          admin = layui.admin,
          element = layui.element,
          layer = layui.layer;

      $('.action-btn').click(()=>{
        layer.open({
          type: 1,
          skin: 'layui-layer-rim',
          area: ['320px'],
          content: '<div style="padding: 15px;line-height: 22px;font-size: 14px;">{$config.open_content}</div>',
          btn: ['{$config.open_btn_text}'],
          yes: function(index, layero){
            //按钮【按钮一】的回调
            location.href = '/index/index/shopDetail';
          }
        });
      })

    });
  </script>

</body>
</html>


